<?php

namespace Common\Taglib;

class rank
{
    public function run($opt)
    {
        $type = trim($opt['type']);
        $limit = intval($opt['limit']);
        $time = trim($opt['time']) ?: 'day';
        $rank = D('Rank')->get_rank($type, $time, $limit);
//        dump($rank);
        return $rank;
    }
}